import Demo2.text;

public class Bird extends text.Animal implements Ifly{
    public Bird(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(getName() + "正在吃鸟粮...");
    }

    @Override
    public void fly() {
        System.out.println(getName() + "正在天上飞");
    }
}
